package ch06.sz2;



public class Zgl {


    private String hywc;

    public Zgl() {
    }

    public void Zgl(String hzw) {
        this.hywc = hywc;
    }

    public String getHywc() {
        return "诸葛亮:" + hywc;
    }

    public void setHywc(String hywc) {
        this.hywc = hywc;
    }

    // 构造函数用于接收注入的值
    public Zgl(String hywc) {
        this.hywc = hywc;
    }

    @Override
    public String toString() {
        return getHywc();
    }
}
